
import { Button, Space, Table } from 'antd'
import { Fragment, ReactNode, Component } from "react"



// 定义 state含有的属性
type StateType = {
    loading: boolean,
    adminList: Object,
    current: number,
    hideOnSinglePage: boolean,
    size: number,
    total: number,
    showAddAdmin: boolean,
};
// 定义propType含有的值
type propType = {
    data: any;
};
interface AdminList {
    state: StateType;
    props:propType
  }
class AdminList extends Component {
    constructor(props: any, context: any) {
        super(props, context)
        this.state = {
            loading: false,
            adminList: this.props.data,
            current: 1,
            hideOnSinglePage: true,
            size: 10,
            total: 0,
            showAddAdmin: false
        }
    }
    render(): ReactNode {
        console.log(this.props.data)
        return <div>我是子组件---</div>;

    }
}

export default AdminList